package org.mics.cyy.backUser.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单请求
 * @author mics
 * @date 2023-10-9
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "菜单请求")
public class MenuRequest implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -3375480531977866373L;

	@Schema(description = "菜单id，新增不传修改传")
	private String id;
	
	@Schema(description = "上级菜单id")
	private String parentId;
	
	@Schema(description = "菜单名称",required = true)
	@NotBlank(message = "菜单名称不能为空")
	@Size(min = 2,max = 32,message = "菜单名称长度2-32位")
	private String name; 
 
	@Schema(description = "菜单图标")
	@Size(min = 2,max = 128,message = "菜单图标长度2-32位")
	private String icon; 
 
	@Schema(description = "菜单路径")
	@Size(min = 2,max = 128,message = "菜单路径长度2-32位")
	private String url;

	@Schema(description = "类型0菜单、1按钮、2目录")
	 private Integer type=0;
	
	@Schema(description = "权限标识")
	@Size(min = 2,max = 32,message = "菜单名称长度2-32位")
	 private String permission;
	
	@Schema(description = "0显示 1隐藏")
	 private  Integer view=0;
}
